package com.haibo.mapper;

import com.haibo.entity.model.MedicalRecordGenerationItemDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : 刘海波
 * @Date: 2025/9/16 15:29
 * @Description: 病历质控-细表
 */
@Mapper
public interface MedicalRecordGenerationItemMapper {

    /**
     * 新增[病历质控-细表]
     * @param medicalRecordGenerationItemDOList
     * @return
     */
    int save(@Param("params") List<MedicalRecordGenerationItemDO> medicalRecordGenerationItemDOList);

    /**
     * 根据[病历主表ID]删除细表数据。逻辑删除
     * @param medicalRecordId 病历主表ID
     * @return
     */
    int delByMedicalRecordId(@Param("medicalRecordId") Long medicalRecordId);
}
